import { request } from "@/utils/service";

class $User {
  constructor() {}
  // 获取用户信息
  getUserInfo = () =>
    request({ url: `/api/usercenter/SysUser/personInfo`, method: "get" });
  // 修改用户信息
  putUserInfo = (data) =>
    request({
      url: `/api/usercenter/usercenterSysUser/${data.id}`,
      data,
      method: "PUT",
    });
  // 申请服务商
  applyService = (data) =>
    request({
      url: `/api/usercenter/usercenterSysTenant/createOrUpdate`,
      data,
      method: "POST",
    }); //  移除团队成员
  delTeamNumber = (data) =>
    request({
      url: `/usercenter/usercenterTenantUserRelation/removeUserRelationController?userId=${data.userId}`,
      method: "DELETE",
    });
}

export default new $User();
